package com.example.system.service;

import com.alipay.api.AlipayApiException;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.utils.R;
import com.example.system.dto.PaymentDTO;
import com.example.system.entity.Doctor;
import com.example.system.entity.Patient;

import javax.servlet.http.HttpServletRequest;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 王鹤蒲
 * @since 2024-01-22
 */
public interface IPatientService extends IService<Patient> {

    public R insert(Patient patient);

    public R selectAll(int currentPage,int pageSize,String patientName);

    public R deleteById(int id);

    public R deleteByIds(int []ids);

    public R edit(Patient patient);

    public R pay(PaymentDTO paymentDTO);

    public String payNotify(HttpServletRequest request) throws AlipayApiException;
}
